/*
 * @Author: wangzhichiao<https://github.com/wzc570738205>
 * @Date: 2020-03-12 20:16:22
 * @LastEditors: wangzhichiao<https://github.com/wzc570738205>
 * @LastEditTime: 2020-04-08 17:47:39
 */
import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/DoorManagement/user/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/DoorManagement/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/DoorManagement/user/logout',
    method: 'post'
  })
}
